/*  
 *  Nanjing JIYU Technology Co.,Ltd All rights reserved.
 *  Copyright (C) 2022 
 *  ==============================================================
 * 
 *  ultrasonic.h
 *    超声波测距功能外部接口
 *
 *  --------------------------------------------------------------
 *  
 */

#ifndef _ULTRASONIC_H
#define _ULTRASONIC_H

#include "system.h"


#define TRIG(n)   HAL_GPIO_WritePin(GPIOB,GPIO_PIN_12,n);
#define ECHO      HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_15)


int ultrasonic_distance(void);
void ultrasonic_test(void);

#endif


